const axios = require('axios');
const { apiUrl, cityId, platform } = require('./config')

function pathTransverter (path, oldQuery) {
    return axios.post(apiUrl + '?city_id=' + cityId,{
        path,
        query: oldQuery
    },{
        headers: {
            platform
        }
    })
}
module.exports = {
    pathTransverter
};
